package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 会员考评项目类型枚举
 * @author yzc
 * @version 2.0.0
 * @date 2021/6/3
 */
public enum MemberAppraisalItemTypeEnum {

    /**
     * 自定义 - 0
     */
    DEFINITION(0, "自定义"),

    /**
     * 供货及时率 - 1
     */
    STRATEGY_1(1, "供货及时率"),

    /**
     * 供货合格率 - 3
     */
    STRATEGY_2(2, "供货合格率");


    private final Integer code;

    MemberAppraisalItemTypeEnum(Integer code, String message) {
        this.code = code;
    }

    public static String getCodeMessage(Integer code) {
        return LanguageHolder.getName(MemberAppraisalItemTypeEnum.class, code);
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.getCode());
    }

}